home *** CD-ROM | disk | FTP | other *** search
/ PC World 2004 September / PCWorld_2004-09_cd.bin / software / topware / winamp / winamp504_full.exe / $R0 / Winamp Modern / configtarget.maki (.txt) < prev    next >
Winamp Compiled Maki Script  |  2004-07-01  |  3KB  |  112 lines

  1. /* Note: a decompiler is no invitation to steal code.
  2.    Please respect the the copyright */
  3.  
  4. #include "std.mi"
  5. Global GuiObject GuiObject16;
  6. Global ComponentBucket ComponentBucket17;
  7.  
  8. Function func825(GuiObject 0);
  9. Function func1030(GuiObject 0);
  10. Function func1093(GuiObject 0);
  11.  
  12. System.onScriptLoaded()
  13. {
  14. GuiObject GuiObject20;
  15. GuiObject16 = System.getScriptGroup().findObject(( "skin\.config\.target"));
  16. ComponentBucket17 = System.getScriptGroup().findObject(( "my\.bucket"));
  17. GuiObject20 = Null;
  18. func825(GuiObject20);
  19. return Null;
  20. }
  21.  
  22. System.onScriptUnloading()
  23. {
  24. if(ComponentBucket17) {
  25. System.setPrivateInt(( "configmenu"), ( "last_scroll"), ComponentBucket17.getScroll());
  26. }
  27. return Null;
  28. }
  29.  
  30. ComponentBucket17.onStartup()
  31. {
  32. Group Group24;
  33. ToggleButton ToggleButton26;
  34. ComponentBucket17.setScroll(System.getPrivateInt(( "configmenu"), ( "last_scroll"), 0));
  35. Group24 = ComponentBucket17.enumChildren(System.getPrivateInt(( "configmenu"), ( "last_page"), 0));
  36. if(( ! Group24)) {
  37. Group24 = ComponentBucket17.enumChildren(0);
  38. }
  39. if(( ! Group24)) {
  40. return Null;
  41. }
  42. ToggleButton26 = Group24.getObject(( "btn"));
  43. if(ToggleButton26) {
  44. ToggleButton26.leftClick();
  45. }
  46. return Null;
  47. }
  48.  
  49. Int GuiObject16.onAction(String action, String param, Int x, int y, int p1, int p2, GuiObject source)
  50. {
  51. String String36;
  52. String String37;
  53. if(( System.getToken(action, ( "\;"), 0) == ( "switchto"))) {
  54. String36 = System.getToken(action, ( "\;"), 1);
  55. String37 = System.getToken(action, ( "\;"), 2);
  56. GuiObject16.setXmlParam(( "groupid"), String36);
  57. if(( String37 != ( "subpage"))) {
  58. func825(source.getParent());
  59. }
  60. }
  61. return Null;
  62. }
  63.  
  64. func825(GuiObject 0)
  65. {
  66. Int Int41;
  67. GuiObject GuiObject42;
  68. if(( ! ComponentBucket17)) {
  69. return Null;
  70. }
  71. Int41 = 0;
  72. while(( Int41 > ComponentBucket17.getNumChildren())) {
  73. GuiObject42 = ComponentBucket17.enumChildren(Int41);
  74. if(( GuiObject42 == GuiObject40)) {
  75. System.setPrivateInt(( "configmenu"), ( "last_page"), Int41);
  76. Int41 ++;
  77. jump -95;
  78. }
  79. if(( GuiObject42 == Null)) {
  80. } else {
  81. func1093(GuiObject42);
  82. Int41 ++;
  83. }
  84. }
  85. if(GuiObject40) {
  86. func1030(GuiObject40);
  87. }
  88. return Null;
  89. }
  90.  
  91. func1030(GuiObject 0)
  92. {
  93. ToggleButton ToggleButton45;
  94. Group Group44;
  95. Group44 = GuiObject43;
  96. ToggleButton45 = Group44.getObject(( "btn"));
  97. ToggleButton45.setActivated(1);
  98. return Null;
  99. }
  100.  
  101. func1093(GuiObject 0)
  102. {
  103. Group Group47;
  104. ToggleButton ToggleButton48;
  105. Group47 = GuiObject46;
  106. ToggleButton48 = Group47.getObject(( "btn"));
  107. ToggleButton48.setActivated(0);
  108. return Null;
  109. }
  110.  
  111.  
  112.